
<%@ page contentType="text/html;charset=UTF-8" language="java" %>


<div class="table-scroll">
    <!--tabel 列表-->
    <table class="table public-table PoInput">
        <thead>
        <tr>
            <td>选择</td>
            <td>客户姓名</td>
            <!-- <td>手机号码</td> -->
            <td>性别</td>
            <td>电话</td>
            <td>成交率</td>
            <td>来源</td>
            <td>阶段</td>
            <td>行业</td>
            <td>标签</td>
            <!-- <td>未还总额</td> -->

            <!-- <td>已借款总额</td> -->
            <td>业务员</td>
            <td>关注</td>
            <td>创建时间</td>
            <td>操作</td>
        </tr>
        </thead>
        <tbody id="personalPublicList"></tbody>
        <script type="text/x-handlebars-template" id="personalPublicList_tpl">
            {{#if content.content.list}}
            {{#each content.content.list}}

            <tr ng-repeat="i in data1.content.list" ng-click="F.tabClick($event)"
                class="table-tr-hover ">
                <td><input type="checkbox" name="ch_id" value="{{id}}"></td>
                <td class="">{{real_name}}</td>

                <td class="">{{#IF_EQ sex 1}}男{{else}}女{{/IF_EQ}}</td>
                <td class="">{{cellphone}}</td>
                <td class="">{{deal_rate}}{{#if deal_rate}}%{{/if}}</td>
                <td>{{source_name}}</td>

                <td class="">{{stage_name}}</td>
                <td>{{vocation}}</td>
                <td>{{label_name}}</td>


                <td class="">{{admin_name}}</td>
                <td>
                            <span>
                        <i class="focus iconfont {{#IF_EQ isfollow 1}}icon-aixin{{else}}icon-aixin1{{/IF_EQ}}" data-isfollow="{{isfollow}}" data-id="{{id}}" style="font-size: 24px; color:#333333"></i>
                    </span>
                </td>
                <%--2018-04-10 16:31:51--%>
                <td class="">{{create_time}}</td>
                <td>


                    <div class="se-re sel-blue">
                        <select data-id="{{id}}" data-source_id="{{source_id}}" data-tag_id="{{label_admin_id}}" data-admin_id="{{admin_id}}"
                                data-stage_id="{{stage_id}}" data-personalid="{{pid}}" data-borrid="{{borrId}}" class="tabHint client974 ng-not-empty operations">
                            <option value="-1" selected="selected">选择操作</option>
                            {{#each ../fourthMenus}}
                            <option value="{{key}}" {{#IF_EQ key 'addPotentialPerson'}}style="display:none"{{/IF_EQ}}>{{name}}</option>
                            <%--<!-- ngIf: HbHr.hr181 && _routeId!=2 -->
                            <option ng-if="HbHr.hr181 &amp;&amp; _routeId!=2" value="1" path="client"
                                    params="editClient" data-type="1"
                                    param="id:974,path:client,params:clientList"
                                    data-id="{{personalId}}"
                                    class="">编辑客户
                            </option><!-- end ngIf: HbHr.hr181 && _routeId!=2 -->
                            <!-- ngIf: HbHr.hr181 && i.role_id==_routeId && _routeId==2 -->

                            <!-- ngIf: HbHr.hr182 -->
                            <option ng-if="HbHr.hr182" value="2" data-type="2" data-id="{{personalId}}"
                                    data-payee="{{unionName}}" class="">拉黑名单
                            </option>
                            <!-- end ngIf: HbHr.hr182 -->
                            <!-- ngIf: HbHr.hr308 -->
                            <option ng-if="HbHr.hr308" value="3" data-type="2" data-roleid="{{role_id}}"
                                    data-admin_id="{{adminId}}" data-id="{{personalId}}" class="">
                                更换业务员
                            </option>
                            <!-- end ngIf: HbHr.hr308 -->
                            <!-- ngIf: HbHr.hr309 -->
                            <option ng-if="HbHr.hr309" value="4" data-personalnum="{{personalNum}}"
                                    data-type="2" class="">查看关联订单
                            </option>
                            <!-- end ngIf: HbHr.hr309 -->
                            <!-- ngIf: HbHr.hr309 -->
                            <option ng-if="HbHr.hr309" value="5" data-type="2" class=""
                                    data-id="{{personalId}}">客户通讯录
                            </option><!-- end ngIf: HbHr.hr309 -->
                            <option value="6" data-id="{{personalId}}" data-label_id="{{label_id}}">设置标签</option>
                            <option value="7" data-id="{{personalId}}" data-homephone="{{homephone}}"
                                    data-payee="{{unionName}}">客户位置
                            </option>
                            <option value="8" data-id="{{personalId}}">跟踪日志</option>--%>
                            {{/each}}
                        </select>

                        <span class="se-po-blue"></span>

                    </div>


                    <button id="{{personalId}}" class="tabHint btnQuery974 operations_record"
                            data-id="{{personalId}}"
                            ng-click="F.btnQuery('btnQuery'+i.personalId); $event.stopPropagation()"
                            path="loanBefore" params="record" param="Table:t_personal,tableId:974"
                            ng-if="HbHr.hr235">
                        操作记录
                    </button><!-- end ngIf: HbHr.hr235 -->
                </td>
            </tr>
            {{/each}}

            {{else}}
            <tr>
                <td style="position: relative;
    left: 50%;
transform: translateX(-50%);
border: none;
">暂无数据
                </td>

            </tr>
            {{/if}}
        </script>
        <tfoot class="public-botPage">
        <tr>
            <td>
                <!-- 全选反选  -->
                <input id="checkAllOrNot" type="checkbox" />
            </td>
            <td colspan="18">
                <div class="public-botPage-left">
              <span>
                <span>全选</span>
              </span>
                    <div class="se-re">
                        <select class="supportc ng-pristine ng-untouched ng-valid ng-not-empty all_block_list"
                                ng-model="selectType.default" ng-change="F.selectQuery('supportc','ch_id')">
                            <option value="-1" selected="selected">批量操作</option>
                            <option ng-if="HbHr.hr182" value="1" class="">删除
                            </option><!-- end ngIf: HbHr.hr182 -->
                        </select>
                        <span class="se-po"></span>
                    </div>
                    <script type="text/x-handlebars-template" id="special_fourth_tpl">
                        {{#each .}}
                        {{#IF_EQ key 'addPotentialPerson'}}
                        <button class="tabHint addPotentialPerson">
                            新建客户
                        </button>
                        {{/IF_EQ}}
                        {{/each}}
                    </script>
                </div>
                <div class="page-container all-page-container"
                     style="float: right; padding: 15px 0;"></div>
            </td>
        </tr>
        </tfoot>
    </table>
</div>
